<div class="col-md-8 processes_list" id="processes_list">
    <div class="panel  panel-success ' has_shadow">
        <div class="panel-heading text-center">
            <h3 class="panel-title ">进程列表</h3>
        </div>
        <div class="panel-body">
            <div class="table-responsive">
                <table class="table ">
                    <thead>
                    <tr>
                        <th>进程名</th>
                        <th>ip</th>
                        <th>进程状态</th>
                        <th>启动时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {% for process in processes_list %}
                        <tr>
                            <td> {{ process.name }}</td>
                         <td>{{ process.ip }}</td>
                            {% if process.detail.statename == 'RUNNING' %}

                                <td class="text-success "><span
                                        class="label label-success">{{ process.detail.statename }}</span>
                                </td>
                            {% else %}
                                <td class="text-warning"><span
                                        class="label label-warning ">{{ process.detail.statename }}</span>
                                </td>
                            {% endif %}

                            <td>{{ process.detail.description }}</td>
                            <td ip="{{ process.ip }}">
                                {% if process.detail.statename == 'RUNNING' %}
                                    <button class="btn  btn-danger stop doaction_btn " doaction="stop">停止</button>
                                {% else %}
                                    <button class="btn  btn-success start doaction_btn " doaction="start">启动</button>
                                {% endif %}
                                <button class="btn  btn-info restart doaction_btn" doaction="restart">重启</button>
                                <button class="btn  btn-warning refresh " >刷新</button>
                                <button class="btn  btn-primary detail">详情</button>
                            </td>
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>